package com.jcl.recruit.elasticsearch.resume.dao;

import com.jcl.recruit.elasticsearch.mapper.SearchResumeJobIntentionMapper;
import com.jcl.recruit.elasticsearch.resume.model.SearchResumeJobIntention;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SearchResumeJobIntentionDao
 * @Author yyliu
 * @Date 2018/11/17 11:51
 * @Version 1.0
 **/
@Component
public class SearchResumeJobIntentionDao implements SearchResumeJobIntentionMapper {

    @Autowired
    SearchResumeJobIntentionMapper searchResumeJobIntentionMapper;

    @Override
    public List<SearchResumeJobIntention> findListByResumeIds(List<Integer> resumeIds) {
        return searchResumeJobIntentionMapper.findListByResumeIds(resumeIds);
    }

    @Override
    public Map<String, Object> findOneMap(Integer resumeId) {
        return searchResumeJobIntentionMapper.findOneMap(resumeId);
    }

    @Override
    public SearchResumeJobIntention findOne(Integer resumeId) {
        return searchResumeJobIntentionMapper.findOne(resumeId);
    }

    @Override
    public int add(SearchResumeJobIntention entity) {
        return searchResumeJobIntentionMapper.add(entity);
    }

    @Override
    public int batchDeleteByResumeIds(List<Integer> resumeIds) {
        return searchResumeJobIntentionMapper.batchDeleteByResumeIds(resumeIds);
    }
}
